WT_DECLARE_WT_MEMBER(1,JavaScriptConstructor,"WTimeValidator",function(m,j,k,l,n,h,o,p){this.validate=function(a){if(a.length==0)return m?{valid:false,message:n}:{valid:true};for(var c,b=-1,d=-1,e=-1,f=-1,i=0;i<j.length;++i){var g=j[i];c=(new RegExp("^"+g.regexp+"$")).exec(a);if(c!=null){b=g.getHour(c);if(a.toUpperCase().indexOf("P")>-1&&b<12)b+=12;else if(a.toUpperCase().indexOf("A")>-1&&b==12)b=0;d=g.getMinutes(c);e=g.getSeconds(c);f=g.getMilliseconds(c);break}}if(c==null)return{valid:false,message:h};
if(b<0||b>23||d<0||d>59||e<0||e>59||f<0||f>999)return{valid:false,message:h};a=new Date(0,0,0,b,d,e,f);if(a.getHours()!=b||a.getMinutes()!=d||a.getSeconds()!=e||a.getMilliseconds()!=f)return{valid:false,message:h};if(k)if(a.getTime()<k.getTime())return{valid:false,message:o};if(l)if(a.getTime()>l.getTime())return{valid:false,message:p};return{valid:true}}});
